﻿using OccurrencesCore.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OccurrencesCore.Service
{
    public partial class WorkflowTaskTypeService
    {
        /// <summary>
        /// Find all task types of a given occurrece type
        /// </summary>
        /// <param name="occurrenceTypeId">The occurrence type do to the search.</param>
        /// <returns></returns>
        public List<WorkflowTaskType> FindByOccurrenceType(int occurrenceTypeId)
        {
            return this._Repository.FindByOccurrenceType(occurrenceTypeId);
        }
    }
}
